package com.sgy.springboot_demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @RequestMapping("/demo")
    public String demo() {
        return "热部署";
    }

    @Value("${com.name}")
    private String name;

    @Value("${com.location}")
    private String location;

    @RequestMapping("/profileTest")
    public void profileTest() {
        System.out.println("name：" + name + "，location：" + location);
    }
}
